package net.framework.smc.kotlin.demokotlin.controller

import net.framework.smc.kotlin.demokotlin.po.ResultPo
import net.framework.smc.kotlin.demokotlin.service.UserService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.*

/**
 *  @authore zyx
 *  @date 2018/7/5 9:35
 */
@RestController
@RequestMapping("/user")
class UserController{

    @Autowired
    private lateinit var userService : UserService

    @GetMapping("/login")
    fun login(@RequestParam param : Map<String, String>) : ResultPo {
        return userService.login(param)
    }
}


